//
//  NSString+SCTimeConvert.m
//  Mutal
//
//  Created by TonyStart on 16/10/21.
//  Copyright © 2016年 com.wx. All rights reserved.
//

#import "NSString+SCTimeConvert.h"

@implementation NSString (SCTimeConvert)
//将毫秒转换为日期
+(NSString *)getShowDateWithTime:(NSString *)timeStr{
    long long time=[timeStr longLongValue];
    
    NSDate *d = [[NSDate alloc]initWithTimeIntervalSince1970:time];
    
    NSDateFormatter *formatter = [[NSDateFormatter alloc]init];
    
    [formatter setDateFormat:@"yyyy/MM/dd HH:mm:ss"];
    
    NSString*timeString=[formatter stringFromDate:d];
    
    return timeString;
}
@end
